package com.n4v1.pko.client.model.map;

import org.newdawn.slick.SlickException;
import org.newdawn.slick.tiled.TiledMapPlus;


public class StandardMap implements Map {
	
	private TiledMapPlus tiledMap;
	
	public StandardMap(String filePath) throws SlickException {
		tiledMap = new TiledMapPlus(filePath);
	}

	@Override
	public void render(int x, int y) {
		tiledMap.render(x, y);
	}

	@Override
	public void renderLayer(int x, int y, int sx, int sy, int w, int h,
			String layer) {
		tiledMap.render(x, y, sx, sy, w + 3, h + 3, tiledMap.getLayerIndex(layer), false);
	}

}
